Hi evryone,
I changed my PDO adapter from Mysql to Postgresql and I have problem with method lastInsertId (). In Postgresql adapter this method always returns false value. When I put seqence name like argument of this function I have correct result but it's not frendly for programmer. Is it another option to get lastInsertId?
var_dump($db->lastInsertId('translations_id_seq'));
var_dump($db->getInternalHandler()->lastInsertId('translations_id_seq'));
return correct value
var_dump($db->lastInsertId();
var_dump($db->getInternalHandler()->lastInsertId());
return false